package com.lw.servicebase.exception;

import com.lw.commonutil.result.ResultCodeEnum;
import lombok.Data;

@Data
public class GuliException extends RuntimeException {
    private int code;
    private String msg;
    public GuliException(ResultCodeEnum resultCodeEnum){
        this.code=resultCodeEnum.getCode();
        this.msg=resultCodeEnum.getMessage();
    }
}
